import request from '@/utils/request'

// 查询入库申请列表
export function listWarehouseApply(query) {
  return request({
    url: '/wms/warehouseApply/list',
    method: 'get',
    params: query
  })
}

// 查询入库申请详细
export function getWarehouseApply(id) {
  return request({
    url: '/wms/warehouseApply/' + id,
    method: 'get'
  })
}

// 新增入库申请
export function addWarehouseApply(data) {
  return request({
    url: '/wms/warehouseApply',
    method: 'post',
    data: data
  })
}

// 修改入库申请
export function updateWarehouseApply(data) {
  return request({
    url: '/wms/warehouseApply',
    method: 'put',
    data: data
  })
}

// 删除入库申请
export function delWarehouseApply(id) {
  return request({
    url: '/wms/warehouseApply/' + id,
    method: 'delete'
  })
}

// 导出入库申请
export function exportWarehouseApply(query) {
  return request({
    url: '/wms/warehouseApply/export',
    method: 'get',
    params: query
  })
}